package DailyPractice.Day10;

import java.util.Scanner;

/**
 * 密码安全
 * @author lumin
 * @date 2022/04/28 14:13
 **/
public class Num2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int i = 0;
        int sz = 0;
        int Dzm = 0;
        int Xzm = 0;
        int fh = 0;
        while(i < str.length()){
            if(48 <= str.charAt(i) && str.charAt(i) <= 57){
                sz++;
            }else if(65 <= str.charAt(i) && str.charAt(i) <= 90){
                Dzm++;
            }else if(97 <= str.charAt(i) && str.charAt(i) <= 122){
                Xzm++;
            }else{
                fh++;
            }
            i++;
        }
        int finalNum = 0;
        if(str.length() <= 4){
            finalNum += 5;
        }else if(str.length() <= 8){
            finalNum += 10;
        }else{
            finalNum += 25;
        }
        if(Dzm == 0 || Xzm == 0){
            finalNum += 10;
        }else if(Dzm != 0 && Xzm != 0){
            finalNum += 20;
        }
        if(sz == 0){
            finalNum += 0;
        }else if(sz == 1){
            finalNum += 10;
        }else if(sz > 1){
            finalNum += 20;
        }
        if(fh == 0){
            finalNum += 0;
        }else if(fh == 1){
            finalNum += 10;
        }else if(fh > 1){
            finalNum += 25;
        }
        if(sz != 0 && (Dzm != 0 || Xzm != 0)){
            if(fh != 0){
                if(Dzm != 0 && Xzm != 0){
                    finalNum += 2;

                }
                finalNum += 1;
            }
            finalNum += 2;
        }
        if(finalNum >= 90){
            System.out.println("VERY_SECURE");
        }else if(finalNum >= 80){
            System.out.println("SECURE");
        }else if(finalNum >= 70){
            System.out.println("VERY_STRONG");
        }else if(finalNum >= 60){
            System.out.println("STRONG");
        }else if(finalNum >= 50){
            System.out.println("AVERAGE");
        }else if(finalNum >= 25){
            System.out.println("WEAK");
        }else{
            System.out.println("VERY_WEAK");
        }
    }
}